convert string to int in java with example